package com.cn.springcloudwechat.mapper.mapper.articleAndMenu;

import com.cn.springcloudwechat.model.articleAndMenu.YmSubjectPackage;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @program: YmSubjectPackageMapper
 * @author: Administrator
 * @create: 2018-07-19 16:31
 */
@Repository
public interface YmSubjectPackageMapper {
    /**
     * 添加专题包
     *
     * @param record 包对象
     * @return
     */
    Long insertSelective(YmSubjectPackage record);

    /**
     * 根据专题包id查询单个专题包数据
     *
     * @param subjectPackageId
     * @return
     */
    YmSubjectPackage selectByPrimaryKey(Long subjectPackageId);

    /**
     * 更新某个专题包数据
     *
     * @param record
     * @return
     */
    int updateByPrimaryKeySelective(YmSubjectPackage record);

    /**
     * 获取专题包
     *
     * @return
     */
    List<YmSubjectPackage> getAllYmSubjectPackage();


}